package com.ed.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Response {
    private Integer id;//主键

    private String type;//问卷类型
    private Integer userId;//用户Id

    private Integer score;//总分
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//开始作答时间
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;   // 创建时间

}
